package com.example.demo.bean;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author:zhangyanan
 * @Description:
 * @Date:Crated in 11:52 2018/1/11
 * @Modified By:
 */
@Configuration  //XML上下文配置
public class HelloWorld {

    public static void testDevTools() {
        System.out.println("测试spring-boot-devtools重新启动");
    }

    @Bean
    public HelloWorld helloWord() {
        System.out.println("初始化HelloWorld Bean");
        return new HelloWorld();
    }
}
